#include "stm32f10x.h"                  // Device header
#include "Delay.h"

#include "LED.h"
#include "Key.h"

#define LED_PIN GPIO_Pin_0
#define LED_INIT_PIN GPIO_Pin_0 | GPIO_Pin_1 | GPIO_Pin_2 | GPIO_Pin_3 | GPIO_Pin_4 | GPIO_Pin_5 | GPIO_Pin_6 | GPIO_Pin_7
#define LED_GROUP GPIOA

uint8_t ReadKeyNum = 0;

int main(void)
{
	// 初始化 LED 的 GPIO
	LED_Init();
	Key_Init();
	

	while(1)
	{
		ReadKeyNum = Key_GetNum();
		if(ReadKeyNum == 1)
		{
			LED1_Turn();
		}
		else if(ReadKeyNum == 2)
		{
			LED2_Turn();
		}
	}
}